org.eclipse.vtp.framework.databases.configurations
Class JndiDatabaseConfiguration

java.lang.Object
  extended by org.eclipse.vtp.framework.databases.configurations.DatabaseConfiguration
      extended by org.eclipse.vtp.framework.databases.configurations.JndiDatabaseConfiguration
All Implemented Interfaces:
IConfiguration, DatabaseConstants

public class JndiDatabaseConfiguration
extends DatabaseConfiguration

A configuration for a database connection factory that uses the JNDI lookup.

Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.framework.databases.configurations.DatabaseConstants
NAME_COLUMN, NAME_COMPARISON, NAME_CRITERIA, NAME_DATABASE, NAME_DRIVER, NAME_JDBC_DATABASE, NAME_JNDI_DATABASE, NAME_MAPPING, NAME_NAME, NAME_PASSWORD, NAME_QUERY, NAME_RESULT_CARDINALITY, NAME_RESULT_LIMIT, NAME_RESULT_NAME, NAME_RESULT_TYPE, NAME_TABLE, NAME_TIMEOUT, NAME_TYPE, NAME_URI, NAME_URL, NAME_USERNAME, NAME_VALUE, NAMESPACE_URI
 
Constructor Summary
JndiDatabaseConfiguration()
          Creates a new JdbcDatabaseConfiguration.
 
Method Summary
 java.lang.String getUri()
          Returns the URI to connect with.
 void load(org.w3c.dom.Element configurationElement)
          Loads the configuration information from the specified XML element.
 void save(org.w3c.dom.Element configurationElement)
          Saves the configuration information into the supplied XML element.
 void setUri(java.lang.String uri)
          Sets the URI to connect with.
 
Methods inherited from class org.eclipse.vtp.framework.databases.configurations.DatabaseConfiguration
addTable, getName, getPassword, getTables, getUsername, removeTable, setName, setPassword, setUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiDatabaseConfiguration

public JndiDatabaseConfiguration()
Creates a new JdbcDatabaseConfiguration.

Method Detail

getUri

public java.lang.String getUri()
Returns the URI to connect with.

Returns:
The URI to connect with.

setUri

public void setUri(java.lang.String uri)
Sets the URI to connect with.

Parameters:
uri - The URI to connect with.

load

public void load(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Loads the configuration information from the specified XML element.

Specified by:
load in interface IConfiguration
Overrides:
load in class DatabaseConfiguration
Parameters:
configurationElement - The element to load the configuration from.

save

public void save(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Saves the configuration information into the supplied XML element.

Specified by:
save in interface IConfiguration
Overrides:
save in class DatabaseConfiguration
Parameters:
configurationElement - The element to save the configuration to.